#ifndef PROTOCOL_WL_KEYBOARD_H
#define PROTOCOL_WL_KEYBOARD_H
//******************************************************************************
//*this code is protected by the GNU affero GPLv3
//*author:Sylvain BERTRAND <sylvain.bertrand AT gmail dot com>
//*                        <digital.ragnarok AT gmail dot com>
//******************************************************************************
#define WL_KEYBOARD_STR "wl_keyboard"
#define WL_KEYBOARD_STR_DWS 3

#define WL_KEYBOARD_KEYMAP_FORMAT_XKB_V1 0

#define WL_KEYBOARD_KEY_STATE_RELEASED 0
#define WL_KEYBOARD_KEY_STATE_PRESSED  1

//------------------------------------------------------------------------------
//requests
//XXX:not yet fixed in the protocol
#define WL_KEYBOARD_CLOSE    3
//------------------------------------------------------------------------------
//events
#define WL_KEYBOARD_KEYMAP    0
#define WL_KEYBOARD_ENTER     1
#define WL_KEYBOARD_LEAVE     2
#define WL_KEYBOARD_KEY       3
#define WL_KEYBOARD_MODIFIERS 4
//------------------------------------------------------------------------------
#endif
